package com.laikan.reader.core.view;

import android.content.Context;
import com.laikan.library.managers.ToastMgr;

/**
 * Created by anrun on 9/28/16.
 */
public class RefresherManager {
    private static TouchSwipeRefreshLayout mRefresher;
    private static RefresherManager instance;

    private RefresherManager() {

    }

    public static RefresherManager getInstance() {

        if (instance == null) {
            synchronized (ToastMgr.class) {
                instance = new RefresherManager();
            }
        }
        return instance;
    }





    public void init(Context context) {
        if (mRefresher == null) {
            synchronized (RefresherManager.class) {
                if (mRefresher == null) {
                    mRefresher = new TouchSwipeRefreshLayout(context);
                }
            }
        }
    }
}
